package com.baitengsoft.patentapimonitor.api.service;

import com.baitengsoft.patentapimonitor.api.entity.PacTypeEntity;
import com.baitengsoft.patentapimonitor.api.model.PacTypeViewModel;
import com.baitengsoft.patentapimonitor.common.utils.PageResult;
import com.baitengsoft.patentapimonitor.common.utils.Res;
import com.baitengsoft.patentapimonitor.common.utils.SearchParam;

import java.util.List;

/**
 * Created by QEK on 2017/12/18.
 */
public interface PacTypeService extends BaseService<PacTypeEntity> {

    List<PacTypeViewModel> selectPacTypes(Integer platformId);

    PageResult<PacTypeEntity> selectTwoLevelTypeByParentId(Integer platformId,Integer parentId, SearchParam param);

    Res addTwoLevelType(PacTypeViewModel model,Integer userId,Integer platformId);

    Res deleteTwoLevelType(Integer id);

    PacTypeEntity getTwoLevelTypeById(Integer id);
}
